﻿using LearnVocabulary.Models;
using System.Collections.Generic;

namespace LearnVocabulary.ViewModels
{
    public class PopupScreenViewModel
    {
        private List<Word> _words;
        private Word _displayedWord;

        public PopupScreenViewModel()
        {
            LoadData();
            DisplayedWord = Words[0];
        }

        public Word DisplayedWord
        {
            get { return _displayedWord; }
            set { _displayedWord = value; }
        }

        public List<Word> Words
        {
            get { return _words; }
            set { _words = value; }
        }

        private void LoadData()
        {
            Words = new List<Word>(new[] { new Word { Meaning = "-Type: Meaning", Name = "Word", Pronunciation = "/Pronunciation/" } });
        }
    }
}
